package com.ft.admix.ad;

import android.app.Activity;
import android.content.Context;

import com.ft.admix.base.AdListener;
import com.ft.admix.base.BaseAd;
import com.ft.admix.config.AdConfig;
import com.ft.admix.model.MixRewardItem;

public abstract class MixCustomInterstitialAdapter extends BaseAd {
    protected boolean isFullScreen; // 是否全屏显示

    @Override
    public void load(Activity context, AdConfig config) {
        this.config = config;
        this.context = context;
        loadNetworkAd(context, config);
    }

    @Override
    public void destroy() {
        listener = null;
        config = null;
        isLoaded = false;
    }

    protected abstract void loadNetworkAd(Activity context, AdConfig config);

    public abstract void show(Activity activity);

    public void callInterstitialAdClick(){

    }

    public void callInterstitialAdClose(){

    }

    public void callInterstitialError(){

    }

    public void callInterstitialVideoStart(){}

    public void callInterstitialVideoError(){}

    public void callInterstitialVideoComplete(){}

    public boolean isClientBidding(){
        if (config!=null){
            //配置加入是否客户端竞价标识
            return false;
        }
        return false;
    }

    public void callInterstitialAdShow(){

    }

    public void callInterstitialAdSkip(){

    }


}